import requets from "../utiles/request";

/**
 * 获取文章列表
 * @param {*} Id 频道ID
 * @param {*} time 时间戳
 */
export const getArticleListAPI = (id, time) => {
  return requets.get("/articles", {
    params: {
      channel_id: id,

      timestamp: time,
    },
  });
};

/**
 * 将文章设置为不感兴趣
 * @param {*} id 文章Id
 * @returns
 */

export const dislikeArticleAPI = (id) => {
  return requets.post("/article/dislikes", {
    target: id,
  });
};
